import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
        {
                path: '/',
                name: 'Index',
                component: () => import('../views/index/index')
        },
        {
                path: '/123',
                name: '123',
                component: () => import('../views/Test')
        },
        {
                path: '/500',
                name: '500page',
                component: () => import('../views/500page/500page.vue')
        },
        // school
        {
                path: '/school',
                name: 'school',
                component: () => import('../views/school/school')
        },
        {
                path: '/school_detail',
                name: 'school_detail',
                component: () => import('../views/school/school_detail')
        },
        // busniess
        {
                path: '/busniess',
                name: 'busniess',
                component: () => import('../views/business/business.vue')
        },
        {
                path: '/busniess_detail',
                name: 'busniess_detail',
                component: () => import('../views/business/business_detail')
        },
        // course
        {
                path: '/course',
                name: 'course',
                component: () => import('../views/course/course')
        },
        {
                path: '/course_detail',
                name: 'course_detail',
                component: () => import('../views/course/course_detail')
        },
        // customer
        {
                path: '/customer',
                name: 'customer',
                component: () => import('../views/customer/customer')
        },
        // order
        {
                path: '/order_index',
                name: 'order_index',
                component: () => import('../views/order_index/order_index')
        },
        {
                path: '/order_detail',
                name: 'order_detail',
                component: () => import('../views/order_index/order_detail')
        },
        {
                path: '/order-detail-back-fee',
                name: 'order-detail-back-fee',
                component: () => import('../views/order_index/order-detail-back-fee')
        },
        {
                path: '/order-detail-course-info',
                name: 'order-detail-course-info',
                component: () => import('../views/order_index/order-detail-course-info')
        },
        {
                path: '/order-detail-info',
                name: 'order-detail-info',
                component: () => import('../views/order_index/order-detail-info')
        },
        // personinfo
        {
                path: '/personinfo-unbind',
                name: 'personinfo-unbind',
                component: () => import('../views/personinfo/personinfo-unbind')
        },
        {
                path: '/personinfo-hasbindbusiness',
                name: 'personinfo-hasbindbusiness',
                component: () => import('../views/personinfo/personinfo-hasbindbusiness')
        },
        {
                path: '/personinfo-hasbindbusiness-detailinfo',
                name: 'personinfo-hasbindbusiness-detailinfo',
                component: () => import('../views/personinfo/personinfo-hasbindbusiness-detailinfo.vue')
        },
        {
                path: '/bindasbusiness',
                name: 'bindasbusiness',
                component: () => import('@/views/personinfo/unbind-index/bindasbusiness.vue')
        },
        {
                path: '/personinfo-hasbindstudent',
                name: 'personinfo-hasbindstudent',
                component: () => import('@/views/personinfo/personinfo-hasbindstudent.vue')
        },
        {
                path: '/personinfo-add-flowup',
                name: 'personinfo-add-flowup',
                component: () => import('@/views/personinfo/personinfo-add-flowup.vue')
        },
        {
                path: '/personinfo-checkorder',
                name: 'personinfo-checkorder',
                component: () => import('@/views/personinfo/personinfo-checkorder.vue'),
                meta: {
                        keepAlive: false
                }
        },
        {
                path: '/personinfo-selectcorse',
                name: 'personinfo-selectcorse',
                component: () => import('@/views/personinfo/personinfo-selectcorse')
        },
        // 签单线上、线下
        {
                path: '/personinfo-checkorder-offline',
                name: 'personinfo-checkorder-offline',
                component: () => import('@/views/personinfo/personinfo-checkorder-offline.vue')
        },
        {
                path: '/personinfo-checkorder-online',
                name: 'personinfo-checkorder-online',
                component: () => import('@/views/personinfo/personinfo-checkorder-online.vue')
        },
        // 签单选择项目
        {
                path: '/personinfo-select-project',
                name: 'personinfo-select-project',
                component: () => import('@/views/personinfo/personinfo-select-project.vue')
        },


        // sales-info
        {
                path: '/sales-info',
                name: 'sales-info',
                component: () => import('../views/sales-info/sales-info')
        },
        // semester
        {
                path: '/semester',
                name: 'semester',
                component: () => import('../views/semester/semester')
        },
        {
                path: '/semester',
                name: 'semester_detail',
                component: () => import('../views/semester/semester_detail')
        },
        // student
        {
                path: '/student',
                name: 'student',
                component: () => import('../views/student/student')
        },
        {
                path: '/personinfo-hasbindstudent',
                name: 'personinfo-hasbindstudent',
                component: () => import('../views/personinfo/personinfo-hasbindstudent')
        },
        {
                path: '/personinfo-bindstudent',
                name: 'personinfo-bindstudent',
                component: () => import('@/views/personinfo/personinfo-bindstudent.vue')
        },
        // teacher
        {
                path: '/teacher',
                name: 'teacher',
                component: () => import('../views/teacher/teacher')
        },
        {
                path: '/teacher_detail',
                name: 'teacher_detail',
                component: () => import('../views/teacher/teacher_detail')
        },
        // workbench
        {
                path: '/workbench',
                name: 'workbench',
                component: () => import('../views/workbench/workbench')
        },
]

const router = new VueRouter({
        mode: 'hash',
        base: process.env.BASE_URL,
        routes
})

export default router
